package com.sphd.emanu.activity.materials;

import android.content.Context;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.CategoryAndStorageEntity;

/**
 * MVPPlugin
 * 邮箱 784787081@qq.com
 */

public class MaterialsContract {
    interface View extends BaseView {

        void setEntity(CategoryAndStorageEntity categoryAndStorageEntity);

        void setRes(int res);
    }

    interface Presenter extends BasePresenter<View> {
        void categorAndStorage(int org,Integer id);

        void updateMaterial(int id, String name,
                            String specifications, Integer category,
                            String minimum_stock, String stock, Integer storage);

        void updateMaterialNoStorage(int id, String name,
                                     String specifications, Integer category,
                                     String minimum_stock, String stock);

        void addMaterial(String name,
                            String specifications, Integer category,
                            String minimum_stock, String stock, Integer storage);

        void adddateMaterialNoStorage(String name,
                                     String specifications, Integer category,
                                     String minimum_stock, String stock);
    }
}
